/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ctrl.command;

import java.util.ArrayList;
import perso.Personnage;

/**
 *
 * @author Administrateur
 */
public abstract class Command {
    private int endPosX;
    private int endPosY;
    private Personnage persoSource;
    private Personnage persoCible;
    public Command (Personnage persoSource,Personnage persoCible){
        this.persoCible=persoCible;
        this.persoSource=persoSource;
    }


    public int getEndPosX() {
        return endPosX;
    }

    public void setEndPosX(int endPosX) {
        this.endPosX = endPosX;
    }

    public int getEndPosY() {
        return endPosY;
    }

    public void setEndPosY(int endPosY) {
        this.endPosY = endPosY;
    }

    public Personnage getPersoSource() {
        return persoSource;
    }

    public void setPersoSource(Personnage persoSource) {
        this.persoSource = persoSource;
    }

    public Personnage getPersoCible() {
        return persoCible;
    }

    public void setPersoCible(Personnage persoCible) {
        this.persoCible = persoCible;
    }

    public abstract void execute(ArrayList<Personnage> listPerso);
    
    
}
